Gogs

docker compose file

services:
  postgres:
    image: postgres:latest
    container_name: postgres
    restart: unless-stopped
    environment:
      - POSTGRES_USER=gogs
      - POSTGRES_PASSWORD=p4ssw0rd  # IMPORTANT: Change this password
      - POSTGRES_DB=gogs
    ports:
      - "5432:5432"
    volumes:
      - ./db-data:/var/lib/postgresql/data
  gogs:
    image: gogs/gogs:latest
    container_name: gogs
    restart: unless-stopped
    ports:
      - "3005:3000"  # UI
      - "10022:22"   # SSH
    links:
      - postgres
    environment:
      - TZ="Europe/Prague"  # IMPORTANT: Change this timezone if needed
    volumes:
      - ./gogs-data:/data
    depends_on:
      - postgres
On this page
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9